<?php

define('IN_DOUCO', true);
require (dirname(__FILE__) . '/include/init.php');

// 指定允许其他域名访问  
//header('Access-Control-Allow-Origin:*');  

$c = empty($_REQUEST['c']) ? 'index' : $_REQUEST['c'];
$a = empty($_REQUEST['a']) ? 'index' : $_REQUEST['a'];
$g = empty($_GET)  ? array() : $_GET;
$p = empty($_POST) ? array() : $_POST;

if(file_exists("controller/api.$c.php")) require "controller/api.$c.php";

if(function_exists("$a")) $a();
to_ajax(0,'001');

//index controller

//user controller












